﻿using Ces.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesProjectWinform.BasicData.Entity
{
    /// <summary>
    /// 工位实体类
    /// </summary>
    public class Workstations
    {
        /// <summary>
        /// 工位id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 工位名称
        /// </summary>
        public string Workstationname { get; set; }

        /// <summary>
        /// 工位编号
        /// </summary>
        public string Workstationcode { get; set; }

        /// <summary>
        /// 产线外检
        /// </summary>
        public string Productionid { get; set; }
        
        /// <summary>
        /// 产线名称
        /// </summary>
        public string Productionlinename { get; set; }

        /// <summary>
        /// 工序
        /// </summary>
        public string Processid { get; set; }

        /// <summary>
        /// 工位描述
        /// </summary>
        public string Workstationdescription { get; set; }

        /// <summary>
        /// 工位属性可以为空
        /// </summary>
        public string Workstationattributes { get; set; }

        /// <summary>
        /// 工位用户可以为空
        /// </summary>
        public string Workstationuserid { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 创建人，可以为空
        /// </summary>
        public string CreatedBy { get; set; }

        /// <summary>
        /// 创建时间，默认为当前系统时间
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人，可以为空
        /// </summary>
        public string UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间，默认为当前系统时间
        /// </summary>
        public DateTime UpdatedTime { get; set; } = DateTime.Now;
    }
    
    /// <summary>
    /// 工位数据传输对象
    /// </summary>
    public class WorkStationDto
    {
        /// <summary>
        /// 提示信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public List<Workstations> Data { get; set; }

        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
    }
}
